from django.urls import path,re_path
from .view import  dev_net,anli

app_name="app03"

urlpatterns = [
    # path('dev_all/', dev_net.detail,name='设备展示'),
    # path('dev_all_cbv/', dev_net.DetailView.as_view(),name='设备展示'),
    # path('dev_all/add/',dev_net.add, ),
    # path('dev_all/<int:id>/edit/',dev_net.edit ),
    # path('dev_alls/',dev_net.DetailView.as_view())

    # 通过Rest Framework 框架
    path('user_all/',dev_net.UserView.as_view()),

    ## 用户登录案例
    path(r'api/v1/auth/',anli.AuthView.as_view()),
    path(r'api/v1/order/',anli.OrderView.as_view()),
    path(r'api/v1/user_order/', anli.UserInfoView.as_view()),
    path(r'api/v1/user_order/', anli.UserInfoView.as_view()),
    path(r'api/^(<version>[v1|v2]+)/users/',anli.UserView.as_view())

]
